<?php

	class item
	{
		var $name;
		var $description;
		var $category;
		
		function item($n, $desc, $c)
		{
			$this->name = $n;
			$this->description = $desc;
			$this->category = $c;
			$this->update_DB();
		}
		function get_name()
		{
			return $this->name;
		}
		function get_description()
		{
			return $this->description;
		}
		function get_category()
		{
			return $this->category;
		}
		function set_name($n)
		{
			$this->name = $n;
			$this->update_DB();
		}
		function set_description($desc)
		{
			$this->description = $desc;
			$this->update_DB();
		}
		function set_category($c)
		{
			$this->category = $c;
			$this->update_DB();
		}
		function update_DB()
		{
			$db->connect(
			$result = $db->query(
			$array = $db->fetch_array($result)
			foreach($array as $entry)
			{
				
			}
		}
	
	}

?>